# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=noson-app
pkgver=4.4.2
pkgrel=0
pkgdesc="The essential to control music from your SONOS devices on Linux platforms"
url="https://janbar.github.io/noson-app/"
arch="all !armhf" # Missing Qt stuff
license="GPL-3.0-only"
makedepends="
	cmake
	flac-dev
	noson-dev
	pulseaudio-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson-app/archive/$pkgver.tar.gz
	"
options="!check" # No unit tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=1 \
		-DBUILD_DEPENDENCIES=0 \
		-DBUILD_LIBNOSON=0
	make -C build
}

package() {
	make DESTDIR="$pkgdir" install -C build
}

sha512sums="b872c438ce13d3bcc349b8ddf1197a08253b78f139c2832646b8193863e733a717be6c331f6fcf2cd5230eef52793fdfdbba0ddd901ccf1ecde157e5c0a537ec  noson-app-4.4.2.tar.gz"
